﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="SouthernLand.Controls.NhaDat.TinVip"
    CodeBehind="TinVip.ascx.cs" %>
<%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.BOL.NhaDat" Assembly="SouthernLand" %>
<%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.Untilities" Assembly="SouthernLand" %>
<asp:UpdatePanel ID="UpdatePanelTinVip" runat="server">
    <contenttemplate>
              
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td class="news-rao-vip-frame-top-left">&nbsp;</td>
        <td align="left" class="news-rao-vip-frame-top">
             <table width="100%" cellpadding="0" cellspacing="0" align="center">
                <tr>
                    <td align="left"><span class="Frame_Title">Tin Vip</span></td>
                    <td align="right">
                        <span class="type-of-news">Loại tin :</span> 
                        <southern:ddlLoaitin ID="dlLoaitin" ValidationGroup="w4u_Raovat" runat="server" AutoPostBack="true"  onselectedindexchanged="dlLoaitin_SelectedIndexChanged" Width="110" CssClass="Textbox" />
                        &nbsp;&nbsp;
                    </td>
                </tr>
            </table>
        </td>
        <td class="news-rao-vip-frame-top-right">&nbsp;</td>
    </tr>
     <tr>
        <td class="news-rao-vip-frame-mid-left"></td>
        <td>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <asp:Panel runat="server" ID="PanelMsg" Visible="false">
                            <div align="center" class="padding-20">
                                <asp:Label runat="server" ID="lblMsg" CssClass="lblMsg"></asp:Label>
                            </div>
                        </asp:Panel>
                       <asp:Repeater runat="server" ID="rptRaovat">
                            <ItemTemplate>
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="4" height="5px"></td>
                                    </tr>
                                    <tr>
                                        <td class="preview-photos-house-box">
                                            <div class="padding-top-8">
                                                 <asp:HyperLink ID="hplImageView" runat="server">
                                                    <asp:Image ID="imgReal" runat="server" CssClass="BorderImage" />
                                                 </asp:HyperLink>
                                                 <span class="luotxem">Lượt xem:
                                                  <asp:Label ID="lblTotalViews" runat="server" CssClass="number-total-views"></asp:Label></span>
                                            </div>
                                        </td>
                                        <td width="315px" valign="top" class="padding-5">
                                            <table width="100%" border="0" cellpadding="5" cellspacing="0">
                                                <tr>
                                                    <td align="left">
                                                        <asp:HyperLink ID="hplRealEstateTitle" runat="server" CssClass="Raovat_Tieude"></asp:HyperLink>
                                                        <img src="<%=Globals.ImagesUrl() %>vip.gif" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left"><b>Vị trí :</b>&nbsp;
                                                        <%#TinhThanh.GetTenTinhThanhByID(ConvertUtility.ToInt32(Eval("TinhThanh")))%> - 
                                                        <%#QuanHuyen.GetTenQuanHuyenByID(ConvertUtility.ToInt32(Eval("QuanHuyen")))%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td  align="left" valign="top">
                                                        <%# Eval("Mota").ToString().PadRight(128, ' ').Substring(0, 128)%>...
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td valign="top" class="line-y"></td>
                                        <td class="padding-5" valign="top">
                                            <table width="100%" border="0" cellpadding="5" cellspacing="0">
                                                <tr>
                                                    <td align="left"><b>Giá :</b>&nbsp;
                                                        <span class="prices-display"> 
                                                            <%# Globals.Gia((Decimal)Eval("Gia"), ConvertUtility.ToInt32(Eval("DonVT")),Convert.ToString(Eval("GiaTren")))%>
                                                        </span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left"><b>Diện tích đất : <%# Eval("DientichDat")%></b> <%=Globals.MetVuong()%></td>
                                                </tr>
                                                <tr>
                                                    <td align="left">
                                                        <b>Ngày :</b> <%# Formatter.FormatDateTime(Convert.ToDateTime(Eval("AddedDate")))%>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right" valign="bottom">
                                                        <%# Globals.LuuTinRao(ConvertUtility.ToInt32(Eval("RaovatID"))) %>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4" height="5px"></td>
                                    </tr>
                                    <tr><td colspan="4" class="list-real-estate-menu-left-line"></td></tr>
                                </table>
                            </ItemTemplate>
                       </asp:Repeater>
                    </td>
                </tr>
                <tr>
                    <td style="padding-top:10px; padding-bottom:10px;">
                         <div align="center">
                            <asp:Panel ID="DisplayPager" Visible="True" runat="server">
                                <div align="center">
                                    <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
                                        <tr>
                                            <td valign="middle" align="center">
                                                <southern:Pager CssClass="LinkButton" ID="Pager" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="middle" align="center">
			                                    <southern:CurrentPage id="CurrentPage" runat="server" />
		                                    </td>
                                        </tr>
                                    </table>
                                </div>
                            </asp:Panel>
                        </div>
                    </td>
                </tr>
            </table>
        </td>
        <td class="news-rao-vip-frame-mid-right"></td>
    </tr>
    <tr>
        <td class="news-rao-vip-frame-bot-left"></td>
        <td align="center" class="news-rao-vip-frame-bot-center"></td>
        <td class="news-rao-vip-frame-bot-right"></td>
    </tr>
</table>            

</contenttemplate>
</asp:UpdatePanel>